import request from "@/utils/request";
import defaultSettings from "@/settings";

//大小额贷记来账手工处理审核 主页查询
export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsBepsCreditVostroHdWkApprove/search`,
};

//大小额贷记来账手工处理审核 查询明细
export function detailsQuery(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsBepsCreditVostroHdWkApprove/detail?id=${data.id}`,
    method: "get",
  });
}

//审核
export function approve(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsBepsCreditVostroHdWkApprove/approve`,
    method: "post",
    data
  });
}

//拒绝
export function reject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsBepsCreditVostroHdWkApprove/reject`,
    method: "post",
    data
  });
}
